package com.bishe.bishe.Service;

import com.bishe.bishe.pojo.Species;
import com.github.pagehelper.PageInfo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

public interface SpeciesService {
    List<Species> findall() ;
     PageInfo<Species> findPage(int page, int size);
    List<Species> findList(Map<String,Object> searchMap);
     PageInfo<Species> findPage(Map<String,Object> searchMap, int page, int size);/*分页查询+模糊查询*/
    Map<String, String> uploadImg(MultipartFile file);
    Species findById(int speciesId);
    List<Species> findByName(String speciesName);
    int insert(Species species);
    int updatestate(int speciesId,String speciesState);
    List<Species> findByNames(String speciesName);
    int update(Species species);
    int updateImg(Species species);
    List<String> listImg();
}
